package com.gao.id.strategy;

import com.gao.id.IdGenerator;
import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
public class UUId implements IdGenerator {

    @Override
    public String nextId() {
        return UUID.randomUUID().toString().replace("-", "");
    }
}
